package com.example.runningdemo.designModel.factory.abstracts;

/**
 * @program: Running-Demo
 * @description:
 * @author: kangwei
 * @create: 2024-08-09 08:43
 **/
public interface Water {

    void getName();


    class DrinkingWater implements Water {

        @Override
        public void getName() {
            System.out.println("饮用水");
        }
    }

    class ClearWater implements Water {

        @Override
        public void getName() {
            System.out.println("纯净水");
        }
    }
}
